//
// Created by cljh on 2023/3/28.
//

#ifndef BIN_PACKING_POLYGONLIST_H
#define BIN_PACKING_POLYGONLIST_H

#include "NestPath.h"

class PolygonList{
public:
    std::vector<NestPath> paths;
    PolygonList(){
        paths=std::vector<NestPath>();
    }
    PolygonList(std::vector<NestPath> _paths){
        paths=_paths;
    }
    void push_back(NestPath p){
        paths.push_back(p);
    }
    NestPath getPolygon(int index){
        return paths[index];
    }
    int getRotate(int index){
        return paths[index].rotation;
    }
    int getId(int index){
        return paths[index].id;
    }
    int size(){
        return paths.size();
    }
};




#endif //BIN_PACKING_POLYGONLIST_H
